ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Word Count

by shadax1 ALL Trending

Sublime Text plugin written in Python that counts specific words given by the user.

Details

Installs

  • Total 4K
  • Win 2K
  • Mac 2K
  • Linux 612
Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17
Windows 0 2 4 4 6 5 12 8 9 11 7 6 1 4 5 7 8 2 4 6 2 9 4 3 2 7 10 5 6 4 2 2 2 4 5 9 7 1 2 3 10 12 7 6 3 2
Mac 1 14 5 4 6 11 6 11 9 5 3 5 6 9 6 7 5 3 8 9 8 10 5 3 3 7 6 5 8 6 7 4 12 7 8 6 8 2 4 9 8 2 5 4 4 5
Linux 0 2 2 0 1 1 1 2 1 2 0 4 4 3 2 4 2 1 2 2 1 1 2 2 2 4 2 2 2 0 0 2 0 3 5 4 5 1 1 3 3 2 4 2 1 0

Readme

Source
raw.​githubusercontent.​com

Word Count

Sublime Text plugin written in Python that counts specific words given by the user.

How to use?

From the Command Palette:

  • Count Specific Words opens a panel on the right where the user can then enter words to count,
  • Copy Word Counters from that same panel, copies all words and their counters into the clipboard,
  • Sort Words By Counters sorts all words in an ascending or descending order based on the counters.

cp

Here is a brief demo:

demo

It's also possible to switch the Whole word and Case sensitive flags between 0 or 1 to disable or enable them respectively.

Contributions/Suggestions

Contributions and suggestions are more than welcome as this is my first time writing a plugin for Sublime Text.

Ideas/Improvements/Issues

Things I want to improve/fix:

  • counting in a large file is quite demanding in terms of cpu
  • make it so it doesn't recount after a sort

Credits

I watched a few of OdatNurd's youtube videos to get started as well as google search (a lot) and use Sublime Text's forum. I also followed FichteFoll's suggestions in order to improve the plugin's behavior.